import { View, Text } from "@tarojs/components";
import Taro from "@tarojs/taro";
import { useState, useEffect } from "react";
import { NavBar } from "lancoo-ui-mobile";
import "./index.scss";

interface HeaderProps{
    title:string
    center?:boolean
    home?:boolean
    onBackLastPage?:()=>void
}

function App(props:HeaderProps) {

  const {title,center=false,home=false,onBackLastPage}=props

  return (
    <NavBar
      title={title}
      center={center}
      bgHeight={53}
      home={home}
      onBackLastPage={onBackLastPage}
    />
  );
}
export default App;
